class Admin::GameConfigController < Admin::AdminController
  
  def show
    @game_config = GameConfig.find(params[:id])
  end
  
  def edit
    @game_config = GameConfig.find(params[:id])
  end
  
  def update
    @game_config = GameConfig.find(params[:id])
    if @game_config.update_attributes(params[:game_config])
      flash_notice(:game_config_updated)
      redirect_to admin_game_config_path(@game_config) 
      
    else
      flash_error(:game_config_not_updated)
      render :action => "edit" 
      
    end  
  end
end
